package com.x9space.common.utils;

//import java.util.HashMap;
//import java.util.Iterator;

/**
 * 处理并记录日志文件
 * 
 * @author x9space
 */
public class LogUtils
{
    public static String getBlock(Object msg)
    {
        if (msg == null)
        {
            msg = "";
        }
        return "[" + msg.toString() + "]";
    }

//    public static void main(String[] args) {
//          HashMap<String, String> map = new HashMap<>();
//        map.put("India", "Delhi");
//        map.put("Japan", "Tokyo");
//        map.put("France", "Paris");
//        map.put("Russia", "Moscow");
//
//        Iterator<String> iterator = map.keySet().iterator();
//
//        while (iterator.hasNext()) {
//            String country = iterator.next();
////            synchronized (lock) {
////
////            }
////            synchronized (lock) {
////                exists = iterator.hasNext();
////            }
//            map.put("Nepal", "KathMandu");
//            System.out.println(country);
//        }
//        System.out.println("---------------------");
//    }
}
